package com.qn.controller;//package com.qn.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/warm-flow")
public class FlowUiController {
    @GetMapping
    @Parameters({
            @Parameter(name = "definitionId", description = "流程定义id，如果没传，则认定是新增流程，会初始化流程节点，否则则是编辑或者查看"),
            @Parameter(name = "disabled", description = "是否可编辑", example = "false")
    })
    @Operation(summary = "流程设计器")
    public String index(String definitionId, Boolean disabled) {
        return "redirect:/warm-flow-ui/index.html?id=" + definitionId + "&disabled=" + disabled;
    }
}